package com.hsxc.cdz.monitor.bean.pile.v1_21;

import com.hsxc.cdz.base.util.BytesUtil;

/**
 * 
 * @author 刘力文 充电桩取消预约充电的报文类
 */
public class ReserveCeasePileMsg extends PileMessage {
	private int port; // 充电口号
	private String cardNum; // 用户卡号

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	@Override
	public void getContentFromByte(byte[] data) {
		byte[] temp;

		temp = BytesUtil.getByte(0, 1, data);
		this.setPort(BytesUtil.bytesToIntSeq(temp));

		temp = BytesUtil.getByte(1, 10, data);
		this.setCardNum(BytesUtil.bcdBytesToStr(temp));
	}
}
